home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
p4
/
p4-1_2c.lha
/
p4-1.2c
/
alog
/
makefile.proto
< prev
next >
Wrap
Makefile
|
1993-05-24
|
872b
|
46 lines
P4_HOME_DIR = ..
INCLUDEDIR = $(P4_HOME_DIR)/include
LIBDIR = $(P4_HOME_DIR)/lib
LIBS = $(MDEP_LIBS)
ALOG_HDR = alog.h
ALOG_SRC = alog.c alogf.c
ALOG_OBJ = alog.o alogf.o
default:
make $(LIBDIR)/libp4.a mergelogs
@echo NOT making adjlogs on $(P4ARCH)
all:
make $(LIBDIR)/libp4.a mergelogs
@echo NOT making adjlogs on $(P4ARCH)
CFLAGS = -D$(P4ARCH)
alog.o:$(P)
$(CC) $(CFLAGS) -I$(INCLUDEDIR) -c alog.c
alogf.o:$(P)
$(CC) $(CFLAGS) -I$(INCLUDEDIR) -c alogf.c
$(ALOG_OBJ): $(ALOG_SRC) $(ALOG_HDR)
$(LIBDIR)/libp4.a: $(ALOG_OBJ)
$(AR) $(LIBDIR)/libp4.a $?
$(RANLIB) $(LIBDIR)/libp4.a
# $(AR) $@ $?
# $(RANLIB) $@
mergelogs: alog_evntdfs.h mergelogs.o
$(CLINKER) -o mergelogs mergelogs.o
/bin/mv mergelogs ../bin
adjlogs: alog_evntdfs.h adjlogs.o
$(CLINKER) -o adjlogs adjlogs.o -lmp
/bin/mv adjlogs ../bin
realclean: clean
$(RM) -f Makefile